package com.example.conf.base;

import java.util.List;

/**
 * ClassName: ListResult
 * description: 返回一个列表
 *
 * @author wsy
 * @Date: 2022/11/20 12:15
 * @since JDK 1.8
 */
public class ListResult<T> extends ResultBase<List<T>> {
    public ListResult() {
    }

    public static <T> ListResult<T> from(List<T> list) {
        ListResult<T> result = new ListResult();

        result.setData(list);
        return result;
    }
}
